package router

import (
	"0507zk/api/handler"
	"0507zk/pkg"
	"github.com/gin-gonic/gin"
)

func LoadRouter(r *gin.Engine) {
	user := r.Group("/user")
	{
		user.POST("/sms", handler.UserSendSms)
		user.POST("/login", handler.UserLogin)
	}
	product := r.Group("/product")
	{
		product.Use(pkg.JWTAuth("2209A"))
		product.POST("/list", handler.ProductList)
	}

}
